NIGHT SHIFT — AUTOMATIC LOCKING AND CHECKOUT

The script changes two wall-power timers. This native macOS setup completes
the safe everyday workflow. Screen-saver locations vary by macOS version.

1. Open Apple menu -> System Settings.
2. Find Screen Saver (on some versions under Wallpaper or Lock Screen).
   Set its inactivity start delay to 20 minutes. Choose a screen saver that
   leaves enough soft light for your room and is comfortable to look at.
3. Open Lock Screen. Set "Require password after screen saver begins or
   display is turned off" to Immediately. Leave that protection enabled.
4. Run Night Shift --apply, then --status. Both AC timers should say 0.
5. Press Control-Command-Q. Verify that returning requires your password.
6. Sign back in, leave the Mac idle for 20 minutes, and verify that the chosen
   screen saver starts and that returning requires authentication.
7. Watch your actual Mac/monitor during that lock check. Some macOS versions,
   device policies or monitors still darken a locked display. Timer settings
   alone cannot guarantee a glowing lock screen indefinitely.

Manual bedtime routine: Control-Command-Q, then your monitor's power button.
Switch the monitor on when you return and unlock your Mac normally.

If automatic locking does not pass, correct the native settings before leaving
the Mac unattended. If the lock screen darkens unexpectedly, use a separate
low-output room light for safe movement and keep password protection enabled.

Restore the previous two power timers at any time:
  bash night-shift.sh --restore

Apple's references:
https://support.apple.com/guide/mac-help/lock-the-screen-of-your-mac-mchl8e8b6a34/mac
https://support.apple.com/guide/mac-help/change-lock-screen-settings-on-mac-mh11784/27/mac/27
On your Mac: `man pmset` explains -c, displaysleep and sleep.
